package com.monitor.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 轮胎传感器对应表
 * </p>
 *
 * @author LX
 * @since 2018-09-27
 */
@TableName("erp_tire_sensor")
public class ErpTireSensor extends Model<ErpTireSensor> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 轮胎ID
     */
    @TableField("erpcartirearchivesid")
    private Integer erpcartirearchivesid;

    public Integer getErpcartirearchivesid() {
        return erpcartirearchivesid;
    }

    public void setErpcartirearchivesid(Integer erpcartirearchivesid) {
        this.erpcartirearchivesid = erpcartirearchivesid;
    }

    /**
     * 轮胎ID
     */
    @TableField("tire_id")
    private Integer tireId;
    /**
     * 轮胎上的 传感器ID (粘贴式传感器)
     */
    @TableField("sensor_id")
    private Integer sensorId;

    /**
     * 轮辋上的 传感器ID  (气嘴或捆绑式胎压传感器)
     */
    @TableField("sensor_id1")
    private Integer sensorId1;

    public Integer getSensorId1() {
        return sensorId1;
    }

    public void setSensorId1(Integer sensorId1) {
        this.sensorId1 = sensorId1;
    }

    public String getBt() {
        return bt;
    }

    public void setBt(String bt) {
        this.bt = bt;
    }

    @TableField("bt")
    private String bt;
    @TableField("warehouse_id")
    private Integer warehouseId;
    @TableField("tire_price")
    private Double tirePrice;
    @TableField("sensor_price")
    private Double sensorPrice;

    @TableField("rims_id")
    private Integer rimsId;

    @TableField("rims_price")
    private Double rimsPrice;
    
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTireId() {
        return tireId;
    }

    public void setTireId(Integer tireId) {
        this.tireId = tireId;
    }

    public Integer getSensorId() {
        return sensorId;
    }

    public void setSensorId(Integer sensorId) {
        this.sensorId = sensorId;
    }

    public Integer getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Integer warehouseId) {
        this.warehouseId = warehouseId;
    }

    public Double getTirePrice() {
        return tirePrice;
    }

    public void setTirePrice(Double tirePrice) {
        this.tirePrice = tirePrice;
    }

    public Double getSensorPrice() {
        return sensorPrice;
    }

    public void setSensorPrice(Double sensorPrice) {
        this.sensorPrice = sensorPrice;
    }
    

    public Double getRimsPrice() {
		return rimsPrice;
	}

	public void setRimsPrice(Double rimsPrice) {
		this.rimsPrice = rimsPrice;
	}

	@Override
    protected Serializable pkVal() {
        return this.id;
    }
    
    

    public Integer getRimsId() {
		return rimsId;
	}

	public void setRimsId(Integer rimsId) {
		this.rimsId = rimsId;
	}

	@Override
    public String toString() {
        return "ErpTireSensor{" +
        ", id=" + id +
        ", tireId=" + tireId +
        ", sensorId=" + sensorId +
        ", warehouseId=" + warehouseId +
        ", tirePrice=" + tirePrice +
        ", sensorPrice=" + sensorPrice +
        "}";
    }
}
